package com.softtek.gui;

import java.awt.FlowLayout;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 * Status Bar fo the JBird browser
 * @author Chepech
 *
 */
public class StatusBar extends JPanel {
	
	private static final long serialVersionUID = 880727241826932527L;
	private JLabel statusLabel;
	public static final String NO_STATUS = "|";
	
	public StatusBar(){
		super(new FlowLayout(FlowLayout.LEFT));
		
		statusLabel = new JLabel(StatusBar.NO_STATUS);
		setBorder(BorderFactory.createBevelBorder(1) );
		
		add(statusLabel);
	}
	
	public void setStatus(final String status){
		statusLabel.setText(status);
	}
}
